r8152: re-schedule napi for tx
authorhayeswang <hayeswang@realtek.com>
Thu, 26 Jan 2017 01:38:33 +0000 (09:38 +0800)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:58:51 +0000 (02:58 +0000)
commitbd2b4fb1c79966e0a135e09051b3b9fdceb19286
treeb90f369627b1b84b69153fdc038856dc6b76e7ae
parent00a5c92deea20f472a8d9bf3fdee907f25e1cff5
r8152: re-schedule napi for tx

[ Upstream commit 248b213ad908b88db15941202ef7cb7eb137c1a0 ]

Re-schedule napi after napi_complete() for tx, if it is necessay.

In r8152_poll(), if the tx is completed after tx_bottom() and before
napi_complete(), the scheduling of napi would be lost. Then, no
one handles the next tx until the next napi_schedule() is called.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/r8152.c